<?php
//check to see if the page is being served over http or https
$URL = strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,strpos( $_SERVER["SERVER_PROTOCOL"],'/')));
//add encoded ://
$URL .= "%3A%2F%2F";
//get the full path to the page
$URL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
//URL encoda any '/' characters
$URL=str_replace ("/","%2F",$URL);
/* create a hyperlink to the W3C validator
 * this will not work on secured pages as
* the W3C's server won't have a valid session open
* and the page will redirect to the login page
*/
?>
<p class="pagefooter">
	<?php
	echo "	
    <a href=\"http://validator.w3.org/check?uri=referer\">
		<img style='border:0;width:88px;height:31px'
		src='/f21na/images/valid-xhtml10.png' alt='Validate this page' /></a>
		<a href=\"http://jigsaw.w3.org/css-validator/check/referer\">		
		<img style='border:0;width:88px;height:31px'
		src='/f21na/images/vcss.gif'
		alt='Valid CSS!' /></a>"		
		?>
</p>
